<%-------------------------------------------------------------------
 * 页面名称：mob_reg.jsp
 * 功能描述：绑定手机
 * Action: 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script language="javascript">
	function submitProcess() {
				if(document.getElementById("mobile").value == ""){
					alert("手机号码不能为空！");
					return false;
				}
				if(document.getElementById("paypass").value == ""){
					alert("支付密码不能为空！");
					return false;
				}
				if(document.getElementById("vericode").value == ""){
					alert("校验码不能为空！");
					return false;
				}
				if (document.all.form1.mobile.value.search(/^(13[0-9]{9}|159[0-9]{8}|158[0-9]{8})$/) == -1){
					alert("手机格式不正确");
					document.getElementById("mobile").value = "";
					return false;
				}
				if(document.getElementById("paypass").value.length < 6) {
					alert("支付密码必须大于6位！");
					document.getElementById("paypass").value = "";
					return false;
				}
				if(document.getElementById("vericode").value.length != 4) {
					alert("校验码必须等于4位！");
					document.getElementById("vericode").value = "";
					return false;
				}

				document.all.form1.submit();			
	}
</script>
<div id="main">
	<div class="content_right">
		<div style="width:745px;margin-left:10px;">
			<div class="titleinfo">
				绑定手机
			</div>
			<div class="edit_pass">
				<table width="100%" border="0" align="center" cellpadding="5"
					cellspacing="1">
					<tr>
						<td colspan="2" class="font_blue">
					<table width="100%" border="0" align="center" cellpadding="7"
										cellspacing="1" bgcolor="#f9e277" style="margin:10px 0;">
										<tr>
											<td bgcolor="#fffdf5">
												<table width="100%" border="0" cellpadding="3"
													cellspacing="0">
													<tr>
														<td width="3%" height="25" valign="top"
															style="border-bottom:1px solid #ccc;"></td>
														<td width="97%" align="left" class="red12b"
															style="border-bottom:1px solid #ccc;">
															特别提醒
														</td>
													</tr>
											<tr>
												<td valign="top">
													&nbsp;
												</td>
												<td align="left" class="font_gray">
													<span class="text9green"> </span>请输入您的
													<span class="text9green">手机号码、支付密码和校验码</span>，获取确认绑定该手机号码的
													<span class="text9green">激活短信</span>。
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<form action="page/myspace/mobileReg.do" name="form1" method="post">
					<tr>
						<td align="right">
							<span class="orang12b">*</span>手机号码：
						</td>
						<td>
							<input name="mobile" id="mobile" maxlength="11"
								class="inputStyle" alt="手机号码" />
						</td>
					</tr>
					<tr>
						<td width="20%" align="right">
							<span class="orang12b">*</span>支付密码：
						</td>
						<td width="80%">
							<input name="paypass" id="paypass" type="password" maxlength="20"
								class="inputStyle" alt="支付密码" />
						</td>
					</tr>
					<tr>
						<td align="right">
							<span class="orang12b">*</span>校 验 码：
						</td>
						<td>
							<input name="vericode" id="vericode" size="6" class="inputStyle"
								alt="校验码" maxlength="4" />
							<img src="<%=path%>/page/util/verifyImage.jsp" width="58"
								height="20" align="absmiddle" />
							<a href="#" onclick="submitProcess();" class="dropblue14b">绑定手机</a>
						</td>
					</tr>
					</form>
					<tr>
						<td align="right">
							&nbsp;
						</td>
						<td height="50" bgcolor="#FFFFFF">
							<input name="button" type="button" class="button_style"
								onclick="loading('<%=path%>/route.do?modual=space$account');"
								value="返 回" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>

